#define _CRT_SECURE_NO_WARNINGS
#include"Heap.h"

int main()
{
	HPDataType arr[] = { 32,50,100,70,65,60 };
	Heap plish;
	HeapInit(&plish);
	for (int i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		HeapPush(&plish, arr[i]);
	}
	for (int i = 0; i < sizeof(arr) / sizeof(int); i++)
	{
		printf("%d ", HeapTop(&plish));
		HeapPop(&plish);
	}
	//printf("\n");
	//printf("%d ", HeapTop(&plish));
	//HeapPop(&plish);
	//printf("%d ", HeapTop(&plish));
	//while (!HPEmpty(&plish))
	//{
	//	printf("%d ", HeapTop(&plish));
	//	HeapPop(&plish);
	//}

	HeapDestory(&plish);
	return 0;
}